import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
  server: {
    port: 8080,
    host: true,
    open: true,
    proxy: {
      "/dev-api": {
        target: "https://app-166072354509830337.lititi.com/",
        changeOrigin: true,
        rewrite: (p) => p.replace(/^\/dev-api/, ""),
      },
    },
  },
});
